package com.gxa.educate.portal.tablet.earlyeducation.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
@Configuration
@EnableOpenApi
public class SwaggerConfig {
        @Bean
        public Docket docket() {
            return new Docket(DocumentationType.OAS_30).apiInfo(
                    new ApiInfoBuilder()
                            .contact(new Contact("", "",
                                    ""))
                            .title("小黑早教项目")
                            .build()
            );
        }

}
